
import request from '@/utils/request';

export function listData(query) {
  return request({
    url: `/mall/mall_product_list`,
    method: 'post',
    data: query
  });
}

export function saveData(form) {
  return request({
    url: '/mall/mall_product_add',
    method: 'post',
    data: form
  });
}

export function updateData(form) {
  return request({
    url: '/mall/mall_product_save',
    method: 'post',
    data: form
  });
}

export function deleteData(query) {
  return request({
    url: '/mall/mall_product_del',
    method: 'post',
    data: query
  });
}

export function productGive(query) {
  return request({
    url: '/mall/mall_product_give',
    method: 'post',
    data: query
  });
}

export function searchList() {
  return request({
    url: '/mall/mall_search_list',
    method: 'post',
  });
}


